package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskObjectEvaluationAuditList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  风险评价审核-审核-对象评价审核
 */
public interface TRiskObjectEvaluationAuditMapper extends
        BaseMapper<TRiskObjectEvaluationAuditList> {

    List<TRiskObjectEvaluationAuditList> selectByRObjEvaAuditZero
            (@Param("companyId") Long companyId,
             @Param("triskidentevalsId") String triskidentevalsId);

    List<TRiskObjectEvaluationAuditList> selectByRObjEvaAudit
        (@Param("companyId") Long companyId,@Param("taskAllocatId") String taskAllocatId);

    List<TRiskObjectEvaluationAuditList> selectByRObjEvaAuditAndIdenId
        (@Param("companyId") Long companyId,
         @Param("triskidentevalsId") String triskidentevalsId);
    
    int insertTRObjectEvaluationAudit
            (@Param("data") List<TRiskObjectEvaluationAuditList> data);

    int deleteObjEvaAudit(Long companyId,String taskAllocatId);
    
}
